<?php
$title = 'Login';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>

<?php
    $form = $this->form;
    $form->setAttribute('action', $this->url('auth', array('action' => 'login')));
    $form->prepare();

    echo $this->form()->openTag($form);
    echo $this->formRow($form->get('login'));
    echo $this->formRow($form->get('password'));
    
 ?>

<?php if($this->messages != null): ?>
    <ul>
        <?php foreach($this->messages as $message): ?>
        <li><?php echo $message ?></li>
        <?php endforeach; ?>
    </ul>    
<?php endif; ?>    
  
<?php 
    echo $this->formSubmit($form->get('submit'));
    echo $this->form()->closeTag(); 
?>